/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.pbs.facades;

import br.com.pbs.exeptions.BancoExeption;
import br.com.pbs.factory.Factory;
import br.com.pbs.interfaces.IFacadePessoa;
import br.com.pbs.interfaces.IFactoryPessoa;
import br.com.pbs.interfaces.IPessoaDao;
import br.com.pbs.pojos.Aluno;
import java.util.List;

/**
 *
 * @author Luiz Segundo
 */
public class FacadeAluno implements IFacadePessoa<Aluno>{

        private static FacadeAluno intance = null;
        private IPessoaDao dao;
        private IFactoryPessoa factoryPessoa;

        private FacadeAluno(){
                factoryPessoa = new Factory();
                dao = factoryPessoa.getAlunoDao();
        }

        public static FacadeAluno getInstance(){
                if(intance == null){
                        intance = new FacadeAluno();
                }
                return intance;
        }

    public boolean cadatraPessoa(Aluno p) throws BancoExeption {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean deletaPessoa(Aluno p) throws BancoExeption {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Aluno buscaPorNome(String nome) throws BancoExeption {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean atualizaPessoa(Aluno p) throws BancoExeption {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public List<Aluno> listaDeNomes(String nome) throws BancoExeption {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
